package com.msb;

public class Main {

    public static void main(String[] args) throws InterruptedException {

        // 窗口
        GameFrame tkFrame = new GameFrame();

        // 读取配置文件的数据
        int count = Integer.parseInt((String) PropertyMgr.getProperty("initTankCount"));

        // 创建敌军坦克
        for (int i = 0; i < count; i++) {
            tkFrame.tanks.add(new Tank(50 + i * 70,200, MyDir.RIGHT, tkFrame, Group.Bad));
        }



        // 没隔100毫秒，重新绘制一次
        while (true) {
            Thread.sleep(100);
            tkFrame.repaint();
        }
    }
}
